package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;

import lombok.*;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Department {
    private Long id;

    private String name;

    private String sn;

    public  String getJsonData(){
        Map<String,Object> map= new HashMap<>();
        map.put("id",this.id);
        map.put("name",this.name);
        map.put("sn",this.sn);
        return JSON.toJSON(map).toString();
    }

}